<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html >
<html lang="en">
<head>
<%@include file="../common/includeBaseSet.jsp" %>
<%@include file="../common/includeSystemSet.jsp" %>
<%@include file="../../common/operation_forbid.jsp" %>
<%@include file="../../common/jsVersion.jsp" %>

<link rel="stylesheet" href="${jypath}/static/plugins/zTree/3.5/zTreeStyle.css" />
<script type="text/javascript" src="${jypath}/static/plugins/zTree/3.5/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="${jypath}/static/plugins/zTree/3.5/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="${jypath}/static/js/jquery/json2.js"></script> 
</head>
<body>
<div class="page-content">
		<div class="row-fluid">	
			<div class="col-xs-12">
					<form id="baseForm" class="form-inline" method="POST" onsubmit="return false;">
					<div >
						<div class="widget-main">
							<input  type="text" name="roleName"  placeholder="角色名称" class="input-large">
							<c:forEach var="btn" items="${permitBtn}">
	        					<c:choose>
									<c:when test="${btn.permission=='system:role:add'}">&nbsp;&nbsp;<button type="button" id="system_role_add" onclick="add()" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-plus">新增</span></button> </c:when>
									<c:when test="${btn.permission=='system:role:list'}">&nbsp;&nbsp;<button id='searchBtn' class="btn btn-warning  btn-sm" type="button" onclick="getList(1)"><i class="icon-search bigger-110 icon-only">查询</i></button></c:when>
								</c:choose>
							</c:forEach>											
						</div>				
					</div>
					<input type='hidden' class='pageNum' name='pageNum' value='1'/>
					<input type='hidden' class='pageSize'  name='pageSize' value='10'/>
					</form>
	
					<table id="baseTable" class="table table-striped table-bordered table-hover" >
						<thead>
							<tr>
								<!-- <th style="width:3%" class="center">
									<label><input type="checkbox" class="ace" ><span class="lbl"></span></label>
								</th> -->
								<th  class="center hidden-480">序号</th>
								<th style="width:15%" class="center">操作</th>
								<th  class="center">角色名称</th>
								<!-- <th  class="center hidden-480">跳转首页</th> -->
								
							</tr>
						</thead>
						<tbody></tbody>
					</table>
					<div class="row">
						
						<div class="col-sm-8">
							<!--设置分页位置-->
							<div id="pageing" class="dataTables_paginate paging_bootstrap">
								<ul class="pagination"></ul>
							</div>
						</div>
					</div>
			<!-- #addorUpdateFrom -->
			<%@include file="form.jsp" %>
			<!-- #dialog-confirm -->
			<%@include file="../common/dialog.jsp" %>	
			</div>
		</div>
	</div>	
<script src="${jypath}/static/js/system/role/role.js?v=${jsVersion}"></script>		
<div id="permitBtnList" style="display: none;">${permitBtnList}</div>
<script type="text/javascript">
	var resourcesCode = "${menu}";
</script>
</body>
</html>